package com.online.service_edu.client;

import com.online.common_utils.ResultJson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-video")
@Component
public interface VodClient {

    @DeleteMapping("service_video/video/delete/{sourceId}")
    public ResultJson deleteVideo(@PathVariable("sourceId") String sourceId);

    @DeleteMapping("deleteVideoList")
    public ResultJson deleteVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
